package org.microboot.validator.entity;

import org.microboot.validator.func.ValidatorFunc;

import java.util.Map;

/**
 * @author 胡鹏
 */
public class ValidatorEntity {

    //属性名
    private String field;
    //校验信息
    private String message;
    //校验规则
    private Map<String, Object> validator;
    //校验处理函数
    private ValidatorFunc validatorFunc;

    public String getField() {
        return field;
    }

    public void setField(String field) {
        this.field = field;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public Map<String, Object> getValidator() {
        return validator;
    }

    public void setValidator(Map<String, Object> validator) {
        this.validator = validator;
    }

    public ValidatorFunc getValidatorFunc() {
        return validatorFunc;
    }

    public void setValidatorFunc(ValidatorFunc validatorFunc) {
        this.validatorFunc = validatorFunc;
    }
}